package com.evil.account.pojo.dto.user.enterprise;

import com.evil.common.account.dto.user.UserEnterpriseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 新增用户企业 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AddUserEnterpriseDTO extends UserEnterpriseDTO {

    private String userCode;

    public AddUserEnterpriseDTO(@NotNull(message = "企业id不能为空") Long enterpriseId, @NotNull(message = "用户id不能为空") Long userId) {
        super(enterpriseId, userId);
    }
}
